export function getCarListData(){
	const data = uni.getStorageSync('carData')
	const result = data ? JSON.parse(data) : ''
	if(result)return result
	return []
}

export function setCarListData(value){
	value ? uni.setStorageSync('carData',JSON.stringify(value)) : 'return'
}

export function getAddress(){
	return uni.getStorageSync('addressData').length > 0 ? JSON.parse(uni.getStorageSync('addressData')) : {}|| {}
}

export function setUserDatas(res){
	res?uni.setStorageSync("userdatas",JSON.stringify(res)):""
}

export function getUSerAsync(){
	return uni.getStorageSync('userdatas') ? JSON.parse(uni.getStorageSync('userdatas')) : ''
}